package com.woniuxy.bank_b.controller;


import com.woniuxy.bank_b.service.BankbService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author: 15489  <br/>
 * Date: 2022/4/1:10:11  <br/>
 * Description:
 */
@RestController
@RequestMapping("/bankb")
public class BankbController {

    @Resource
    private BankbService bankbService;
    @GetMapping("/start/{id}/{money}")
    public boolean start(@PathVariable("id")int id,@PathVariable("money") int money){
       return bankbService.update(id,money)>0 ;


    }
}
